
import {Rectangle} from "electron";
import {SessionName} from "./const.js";




export type Controller = Record<string | symbol, any>;


export interface AppStore {
  mainBounds?: Rectangle;
  proxyUrl: string;
  useProxy: boolean;
  machineId: string;
}


export interface HttpGetReq {
  id?: number
  url: string
  header: Record<string, string>
}


export interface idReq {
  id: number
}


export interface OnSourceData {
  url: string;
  headers:  Record<string, string>;
  sessionName: SessionName
}


export interface SourceRsp {
  url: string; //m3u8文件url
  title: string
  documentURL: string

  headers:  Record<string, string>
  data: string

  token?: string
}